package com.jd.sentinel;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.jd.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class getOrderFallback {

    // 必须加上static
    public static User OrderFallback(@PathVariable("id") Long id, Throwable e){
        return new User(-1L, "服务降级了！", "服务降级啦！,遭不住了,你真的牛逼");
    }
}
